import java.util.Scanner;

public class LCM {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        int num1 = in.nextInt();
        int num2 = in.nextInt();
        if (num1 == 0 || num2 == 0) {
            System.out.println(0);
        }
        int gcd = gcd(num1, num2);
        System.out.println(1l * num1 * num2 / gcd);
    }

    private static int gcd(int num1, int num2) {
        while (num2 != 0) {
            int r = num1 % num2;
            num1 = num2;
            num2 = r;
        }
        return num1;
    }
}
